<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

<title>文件编辑</title>

		<link rel="stylesheet" type="text/css" href="../css/style1.css" />
		<link rel="stylesheet" type="text/css" href="../css/base.css" />
		<link rel="stylesheet" type="text/css" href="../css/indexbody.css" />
		<script type="text/javascript" src="../js/frame.js"></script>
<script type="text/javascript">
	window.onload=function(){
		document.getElementById("hide").style.display="block";
			document.getElementById("sc").style.display="none";
			document.getElementById("vip").style.display='none';
			document.getElementById("mb").style.display='none';
			document.getElementById("sys").style.display='none';
	}
</script>

<style type="text/css">

.selbt {	

	float:left;

	width:120px;

	margin:2px 0px 2px 3px;

	text-align:center;

}

.helpdiv {

	float:left;

 	display:none;

	border: 1px dashed #749F4D;

  	background-color: #F9FCEF;

	width:99%;

	padding:5px;

}

</style>

<script  language="javascript">

function Post()

{

	if (document.form1.filename.value=="")

	{

		alert("文件名不能为空。");

		document.form1.filename.focus();

		return false;

	}

}

function showdiv(id)

{

	hideobj = GETNAMES("help111");

	for(i=0;i<hideobj.length;i++)

	{

		hideobj[i].style.display="none";

	}

	if(id != '')

	{

		 document.getElementById(id).style.display="block";

	}

}

function GETNAMES(name)

{

	var returns = document.getElementsByName(name);

	 if(returns.length > 0) return returns;

	 returns = new Array();

	 var e = document.getElementsByTagName('div');

	 for(i = 0; i < e.length; i++)

	{

		 if(e[i].getAttribute("name") == name)

		 {

			 returns[returns.length] = e[i];

		}

	 }

	 return returns;

}

</script>

</head>

<body bgcolor="#F2F4F3" leftmargin="8" topmargin="8">
 <div id="container">
       <jsp:include page="../header.jsp"></jsp:include>
        <div style="float:left; width:195px; height: 550px">
        	<jsp:include page="../leftnav.jsp"></jsp:include>
        </div>
       <div style="float:left; overflow-y:scroll; overflow-x:hidden; width: 785px; height: 550px;">

<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ECFAD3" style="margin-bottom:8px;">

  <tr>

    <td height="28" style="border:1px dotted #BFD67C" background='../images/wbg.gif'>

		&nbsp;&nbsp;◇<a href='templets_main.php?acdir=default'><b>模板管理</b></a> &gt;&gt; <b>修改/新建模板</b>

    </td>

  </tr>

</table>

<form method="post" action="tpl.php" name=form1 onSubmit="return Post()">

<input type="hidden" name="action" value="saveedit" />

<input type="hidden" name="acdir" value="default" />

<table width='98%'  border='0' cellpadding='3' cellspacing='1' bgcolor='#cfcfcf' align="center">

		<tr bgcolor='#EEF4EA'>

			<td colspan='2' background='images/wbg.gif' height='26'  style="padding-left:10px;">

					<font color='#666600'><b>修改/新建模板：</b></font>			</td>
		</tr>

		<tr bgcolor='#FFFFFF'>

  		<td>文件名称</td>

  		<td>

  			<input name=filename size=40 value="article_default.htm" class="alltxt"/>

    		（不允许用 “..” 形式的路径）  		</td>
		</tr>
    <tr>

      <td colspan='2'  bgcolor='#FFFFFF' style="border-top:1px solid #fff;">
		 <textarea  style="width:98%; height:400px; border:#00CC66 solid 1px;" ></textarea>
	  </td>

    </tr>

    <tr>

      <td height="42" colspan='2' bgcolor="#F9FCEF">

          <input type="submit" value="  保 存  " name='B1' class="coolbg np" />

          &nbsp;

          <input type="reset" value="取消修改" name='B2' class="coolbg np" />

          &nbsp;

          <input type="button" value="不理返回" name='B4' class="coolbg np" onClick="javascript:history.go(-1);" />

      </td>

    </tr>

</table>

 </form>
       		
       </div>
    </div>
</body>

</html>

